<%--
  Created by IntelliJ IDEA.
  User: lhr
  Date: 2022/5/19
  Time: 14:47
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<html>
<head>
    <title>fortokens 标签用法</title>
</head>
<body>
  <%--fortokens标签用法--%>
  <c:if test="${requestScope.names ne null}">
      <c:forTokens items="${requestScope.names}" delims="," varStatus="sta">
          第${sta.count}个人的名字是:${sta.current}<br><%--delims=“，”代表以逗号为分隔符 current为当前字符串--%>
      </c:forTokens>
  </c:if>
</body>
</html>
